/*
* @Author: weiwang
* @Date:   2018-11-27 20:04:43
* @Last Modified by:   weiwang
* @Last Modified time: 2018-11-27 20:04:43
*/
import Taro, { Component } from '@tarojs/taro'

// import { IProps, IState } from './schemas'

export default class extends Component {

  constructor(props) {
    super(props)
  }

  componentWillReceiveProps (nextProps) {
    console.log(this.props, nextProps)
  }

  componentWillMount () { }

  componentWillUnmount () { }

  componentDidShow () { }

  componentDidHide () { }

  login = () => {
    console.log('login')
    Taro.login()
      .then(success=> {
        console.log(success, 'success')
      })
      .catch(error=>{
        console.log(error, 'error')
      })
  }

}